var o = getApp(), t = wx.cloud.database(), e = (t.collection("records"), new Date());

new Array(15);

Page({
    data: {
      ty:[],
    },
    onLoad: function(e) {
        var c = this;
        console.log("ceshi:",o.globalData.openid)
        t.collection("records").where({
            _openid: o.globalData.openid,
        }).get({
          //如果查询成功的话
          success: res => {
          console.log(res.data)
          //这一步很重要，给ne赋值，没有这一步的话，前台就不会显示值
          this.setData({            
            ty:res.data,
          })
          }
          })
          // console.log("hahaha",ty)
          
    },
   
    onReady: function() {},
    showPopup1: function() {
        this.selectComponent("#a").showPopup();
    },
    _success1: function() {
        this.selectComponent("#a").hidePopup();
    },
    showPopup2: function() {
        this.selectComponent("#b").showPopup();
    },
    _success2: function() {
        this.selectComponent("#b").hidePopup();
    },
    showPopup3: function() {
        this.selectComponent("#c").showPopup();
    },
    _success3: function() {
        this.selectComponent("#c").hidePopup();
    },
    showPopup4: function() {
        this.selectComponent("#d").showPopup();
    },
    _success4: function() {
        this.selectComponent("#d").hidePopup();
    },
    showPopup5: function() {
        this.selectComponent("#e").showPopup();
    },
    _success5: function() {
        this.selectComponent("#e").hidePopup();
    },
    showPopup6: function() {
        this.selectComponent("#f").showPopup();
    },
    _success6: function() {
        this.selectComponent("#f").hidePopup();
    },
    showPopup7: function() {
        this.selectComponent("#g").showPopup();
    },
    _success7: function() {
        this.selectComponent("#g").hidePopup();
    },
    showPopup8: function() {
        this.selectComponent("#h").showPopup();
    },
    _success8: function() {
        this.selectComponent("#h").hidePopup();
    },
    showPopup9: function() {
        this.selectComponent("#i").showPopup();
    },
    _success9: function() {
        this.selectComponent("#i").hidePopup();
    },
    showPopup10: function() {
        this.selectComponent("#j").showPopup();
    },
    _success10: function() {
        this.selectComponent("#j").hidePopup();
    },
    showPopup11: function() {
        this.selectComponent("#k").showPopup();
    },
    _success11: function() {
        this.selectComponent("#k").hidePopup();
    },
    showPopup12: function() {
        this.selectComponent("#l").showPopup();
    },
    _success12: function() {
        this.selectComponent("#l").hidePopup();
    },
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});